<template>
  <div class="articleItem">
    <div class="shopitem" @click="Shop">
      <div class="top">
        <img src="/baking1/Fge9lvM93fLrIJCBduFWDkbhbGJI.png" />
        <p>1000+在学</p>
      </div>
      <div class="bottom">曲奇礼盒：9款口味吃不腻吃不腻吃不腻吃不腻</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    Shop() {
      this.$router.push("/shopdetail");
    },
  },
};
</script>

<style scoped>
.articleItem {
  display: flex;
  /* padding: 0 10px 0 10px; */
  margin-bottom: 10px;
}
.shopitem {
  background-color: #fff;
  border-radius: 5px;
  width: 40vw;
  margin: 0 0 0 10px;
}

.shopitem .top img {
  width: 100%;
  display: block;
  border-radius: 5px 5px 0 0;
}

.shopitem .top {
  position: relative;
}

.shopitem .top p {
  position: absolute;
  background-color: white;
  border-radius: 5px;
  font-size: 12px;
  padding: 3px;
  left: 0;
  bottom: 0;
  margin: 5px;
}

.shopitem .bottom {
  font-size: 15px;
  /* display: inline-block; */
  width: 150px;
  font-weight: bold;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  word-break: break-all;
  word-wrap: break-word;
  overflow: hidden;
}
</style>
